How can I correctly retrieve the next ID using nextSibling in JavaScript

welcome to shbcf.ru